<template>
  <el-menu
    default-active="2"
    class="el-menu-vertical"
    @open="handleOpen"
    @close="handleClose"
    :collapse="false"
  >
    <li class="header">
      <!--  -->
      <el-avatar shape="circle" :size="100" fit="cover" :src="iconUrl" />
    </li>
    <li>
      <el-tag>李卓一yyds</el-tag>
    </li>
    <el-menu-item index="2">
      <el-icon><House /></el-icon>
      <span>首页</span>
    </el-menu-item>

    <el-menu-item index="3">
      <el-icon><document /></el-icon>
      <span>分类</span>
    </el-menu-item>

    <el-menu-item index="4">
      <el-icon><setting /></el-icon>
      <span>页面</span>
    </el-menu-item>
  </el-menu>
</template>
<script>
export default {
  data() {
    return {
      iconUrl:
        'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
    }
  }
}
</script>
<style lang="scss" scoped>
.el-menu-vertical {
  width: 200px;
}
.header {
  margin-top: 0.9375rem;
}
</style>
